export const routes = [
    {
        path: "*",
        redirect: "/404",
    },
    {
        path: "/",
        redirect: "/home",
    },
    {
        path: "/404",
        component: ()=> import(/* webpackChunkName: "fail" */ "@/views/NotFind"),
    },
    {
        path: "/login",
        name: "login",
        component: () => import(/* webpackChunkName: "login" */ "@/views/Login"),
    },
    {
        path: "/home",
        name: "home",
        component: () => import(/* webpackChunkName: "home" */ "@/views/Home"),
        children: [
            {
              path: "account",
              name: "account",
              meta: {
                title: {
                  yiji: "系统账号管理",
                  erji: "平台账号管理-列表",
                },
              },
              component: () =>
                import(/* webpackChunkName: "account" */ "@/views/system/account"),
            },
            {
              path: "bumen",
              name: "bumen",
              meta: {
                title: {
                  yiji: "系统账号管理",
                  erji: "部门-列表",
                },
              },
              component: () =>
                import(/* webpackChunkName: "bumen" */ "@/views/system/bumen"),
            },
            {
              path: "juese",
              name: "juese",
              meta: {
                title: {
                  yiji: "系统账号管理",
                  erji: "角色-列表",
                },
              },
              component: () =>
                import(/* webpackChunkName: "juese" */ "@/views/system/juese"),
            },
            {
              path: "quanxian",
              name: "quanxian",
              meta: {
                title: {
                  yiji: "系统账号管理",
                  erji: "权限-列表",
                },
              },
              component: () =>
                import(/* webpackChunkName: "quanxian" */ "@/views/system/quanxian"),
            },
            {
              path: "userList",
              name: "userList",
              meta: {
                title: {
                  yiji: "用户管理",
                  erji: "用户列表"
                }
              },
              component: ()=> import(/* webpackChunkName: "userList" */ "@/views/user/userList.vue"),
            },
            {
              path: "userRenz",
              name: "userRenz",
              meta: {
                title: {
                  yiji: "用户管理",
                  erji: "用户认证"
                }
              },
              component: ()=> import(/* webpackChunkName: "userRenz" */ "@/views/user/userRenz.vue"),
            },
            {
              path: ":id/proveInfo",
              name: "proveInfo",
              meta: {
                title: {
                  yiji: "用户管理",
                  erji: "认证管理"
                }
              },
              component: ()=> import(/* webpackChunkName: "proveInfo" */ "@/views/user/prove.vue"),
              props: true,
            },
            {
              path: "community",
              name: "community",
              meta: {
                title: {
                  yiji: "圈子管理",
                  erji: "社区管理"
                }
              },
              component: ()=> import(/* webpackChunkName: "community" */ "@/views/quanz/community.vue"),
            },
            {
              path: "report",
              name: "report",
              meta: {
                title: {
                  yiji: "圈子管理",
                  erji: "帖子管理"
                }
              },
              component: ()=> import(/* webpackChunkName: "report" */ "@/views/quanz/report.vue"),
            },
          ],
    },
]